package com.cvmars.jianyou.model

/**
 * Created by hehaifeng on 2018/12/13.
 */
class TaskSingleTone private constructor(){


    init{

        "Task init"
    }



    companion object {
        var getInstance = SingletonHolder.holder
    }


    private object SingletonHolder {
        val holder = TaskSingleTone()
    }


    fun print(): String {


        return "singletone"
    }





    class BtnClick : OnClick{

        override fun onClick(messages: String) {
            TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
        }
    }

    interface OnClick{

       fun onClick( messages : String)
    }

}